/**
* 版权所有：福建邮科电信业务部厦门研发中心 
*====================================================
* 文件名称: MyReportHandle.java
* 修订记录：
* No    日期				作者(操作:具体内容)
* 1.    Jun 19, 2012			詹保山(softzbs@126.com)(创建:创建文件)
*====================================================
* 类描述：(说明未实现或其它不应生成javadoc的内容)
* 
*/
package com.devframe.component.ftlprocess;


import org.apache.log4j.Logger;

import com.devframe.component.ftlprocess.freemarker.context.MyFTLProcessHandleContext;
import com.devframe.component.ftlprocess.freemarker.handle.ModelHandler;
import com.devframe.component.ftlprocess.freemarker.handle.RenderHandler;
import com.devframe.component.ftlprocess.freemarker.handle.ReportHandler;
import com.devframe.component.ftlprocess.xml.parse.ModelXmlParser;

/**
 *<pre><b><font color="blue">MyReportHandle</font></b></pre>
 *
 *<pre><b>&nbsp;--描述说明--</b></pre>
 * <pre></pre>
 * <pre>
 * <b>--样例--</b>
 *   MyReportHandle obj = new MyReportHandle();
 *   obj.method();
 * </pre>
 */
public class MyFTLProcessHandleBean {
	private static Logger logger = Logger.getLogger(MyFTLProcessHandleBean.class);
	
	private String templateFile;
	/**
	 * report指令的解析
	 */
	private ReportHandler reportHandle;
	/**
	 * 对XML节点的解析
	 */
	private ModelXmlParser parserModelXml;
	/**
	 * model 指令的解析
	 */
	private ModelHandler modelHandle;
	/**
	 * render 指令的解析
	 */
	private RenderHandler renderHandle;
	

	
	
	
	public MyFTLProcessHandleBean(MyFTLProcessHandleContext handleContext,String templateFile ){
		this.templateFile=this.templateFile;
		//初始化操作
		this.reportHandle=new ReportHandler(handleContext);
		this.modelHandle=new ModelHandler(handleContext);
		this.renderHandle=new RenderHandler(handleContext);
		this.parserModelXml=new ModelXmlParser();
	}

	public ReportHandler getReportHandle() {
		return reportHandle;
	}

	public ModelHandler getModelHandle() {
		return modelHandle;
	}

	public RenderHandler getRenderHandle() {
		return renderHandle;
	}

	public ModelXmlParser getParserModelXml() {
		return parserModelXml;
	}
	
	public String getTemplateFile() {
		return templateFile;
	}
	


	public void setTemplateFile(String templateFile) {
		this.templateFile = templateFile;
	}
	
//	public void destroy(){
//		this.modelHandle=null;
//		this.parserModelXml=null;
//		this.renderHandle=null;
//		this.reportHandle=null;
//	}

}
